Skip to content

Check packs that only joining players can download - #7

Merged
mgilardi merged 1 commit into
mainfrom
gated-pack-check
Nov 16, 2026
Merged

mgilardi merged 1 commit into
mainfrom
gated-pack-check

Conversation

@mgilardi

Copy link
Copy Markdown
Contributor

Adds a per-pack check block so Packmule's startup check can get past a players-only gate such as LeafJuice's (D219, D220). Packmule checks the pack at a loopback address with a token from a mode-600 file, and players keep the public address.

  • The config is refused when local-prefix isn't loopback or public-prefix doesn't start the url.
  • The check fails on a linked, shared, missing or malformed token file. Token requests never follow redirects, and the token is never logged.
  • /packmule pack set keeps the block while the new address stays under the prefix.
  • Version 0.4.0, README section, decisions entry, test-audit entry and release notes.

Tested: 51 unit tests, 11 of them new, against a made-up gate on 127.0.0.1. Not tested yet: LeafJuice's real gate (waits for D220), bots, a real client.

🤖 Generated with Claude Code

A private texture pack goes only to players joining the server, through Leaf Juice's joining-only gate (D219). Packmule's startup check isn't a player, so the gate would refuse it and the pack would be marked dead. A pack can now carry a check block: Packmule checks it at a loopback address with a token from a mode-600 file, and players keep the public address.

The config is refused when the local address isn't loopback or the public prefix doesn't start the pack's url. The check fails on a linked, shared, missing or malformed token file, token requests never follow redirects, and the token is never logged. pack set keeps the block while the new address stays under the prefix.

Tested with unit tests against a made-up gate (51 pass). Not yet run against Leaf Juice's own gate, which waits for its side (D220), or with bots.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mgilardi
mgilardi merged commit c2b9720 into main Nov 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant